package com.hxkj.utils;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

public class JsonUtils {
/**
 * @author mojiayi
 * @date $ $$params$
 * @return $
 * @throws
 * @since
 */


public static String readFile1(InputStream fin) throws IOException {

    BufferedReader br = new BufferedReader(new InputStreamReader(fin));
    StringBuffer sb = new StringBuffer();

    String line = null;
    while ((line = br.readLine()) != null) {
        sb.append(line);
    }

    br.close();
    return  sb.toString();
}
}
